package core.objects.enums;

public enum LoanStatusEnum {

        Scheduled("Scheduled"), Ongoing("Ongoing"), Finished("Finished"), Cancaled("Cancaled");
        String status;

        private LoanStatusEnum(String status) {
            this.status = status;
        }
        
        public static LoanStatusEnum valueOfString(String name){
            for(LoanStatusEnum g : values())
                if (g.toString().toLowerCase().equals(name)) return g;
            return null;
        }
    }